package com.ruoyi.project.system.orderteamorder.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.project.system.oederteamgoods.domain.OrderTeamGoodsDto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 功能：
 *
 * @author：dell
 * @create：2020/6/18 15:40
 * @version：2020 Version：1.0
 * @company：老屋新房 Created with IntelliJ IDEA
 */
public class OrderTeamOrderDto extends OrderTeamOrder {
	//买家昵称
	@Excel(name = "买家昵称")
	private String userName;


	//商品集合
	private List<OrderTeamGoodsDto> goodsList;

	//购物车
	private ArrayList cartIds;

	//退款金额
	private BigDecimal refundPrice;
	//退款状态
	private Integer refundStatus;
	//退款原因
	private String result;
	//申请时间
	private Date refundCreated;
	//结束时间戳
	private Long endTimeL;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    private String memberId;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public List<OrderTeamGoodsDto> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<OrderTeamGoodsDto> goodsList) {
		this.goodsList = goodsList;
	}

	public ArrayList getCartIds() {
		return cartIds;
	}

	public void setCartIds(ArrayList cartIds) {
		this.cartIds = cartIds;
	}

	public BigDecimal getRefundPrice() {
		return refundPrice;
	}

	public void setRefundPrice(BigDecimal refundPrice) {
		this.refundPrice = refundPrice;
	}

	public Integer getRefundStatus() {
		return refundStatus;
	}

	public void setRefundStatus(Integer refundStatus) {
		this.refundStatus = refundStatus;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public Date getRefundCreated() {
		return refundCreated;
	}

	public void setRefundCreated(Date refundCreated) {
		this.refundCreated = refundCreated;
	}

	public Long getEndTimeL() {
		return endTimeL;
	}

	public void setEndTimeL(Date created) {
		this.endTimeL = new Date(created.getTime()+(15*60*1000)).getTime();
	}
}
